﻿define('personModel',
    ["persons", 'ko'],
   function (persons, ko) {
       var personModel = function () {
           var self = this;
           self.persons = ko.observable(new persons());
           self.countPersons = ko.observable();
         

           SendAjax("/api/Persons/GetCount", {}, function (data) {
               self.countPersons(data);
           });
       };


       return personModel;
   });